import { req } from "./init";

export interface User {
  encryptedData: string;
  rawData: string;
  iv: string;
  signature: string;
  code: string;
}

export const login = async (params: User) => {
  const { message } = (await req.post("users/wxlogin", params)) as any;
  return message;
};
